package com.zzx.demo.controll;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zzx.demo.service.IBusiService;

@Controller
public class TestController {
	
	@Autowired
	private IBusiService busiService;
	
	//@Autowired
	//private IDemoService demoBusiService;
	
	
	@RequestMapping("/hello")
	public String getHello() {
		System.err.println("**********控制层开始***********");
		busiService.getTest();
		//String str = snsBusiService.rtnTest("dubbochuan");
		//System.err.println("**********控制层 end***********"+str);
		return "index";
	}
	
	@RequestMapping("/test")
	public String getTest() {
		System.err.println("**********控制层开始***********");
		//String str = demoBusiService.rtnTest("dubbochuan");
		busiService.getTwo();
		//System.err.println("**********控制层 end***********"+str);
		System.err.println("**********控制层 end***********");
		return "index";
	}
}
